package zuoye.test1;

public class  Recruiter extends Employee {
    private double Commission;

    public Recruiter(String name, String id, double salary, double commission) {
        super(name, id, salary);
        Commission = commission;
    }

    public double getCommission() {
        return Commission;
    }

    public void setCommission(double commission) {
        Commission = commission;
    }

    @Override
    public void work() {
        System.out.println("工号为"+getId()+"的"+getName()+"的招聘经理，拿着"+getSalary()+"的工资，正在Boss直评上招人，招一个提成"+getCommission()+"元。");

    }
}
